import React, { FC } from 'react';
import { View, Text, Image } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
export interface IProps extends ICompProps {
    leftSolt?: React.ReactNode;
}
CardWrap.defaultProps = {} as Partial<IProps>;
function CardWrap(props: IProps) {
    const { className, style, leftSolt, children } = props;
    const localClassName = useClassName('CardWrap', className);
    return (
        <RootView className={localClassName} style={style}>
            <View className="left">{leftSolt ? leftSolt : children}</View>
            <View className="right">
                <Image className="icon" src={require('@/assets/images/right_arrow.png')} mode="scaleToFill" />
            </View>
        </RootView>
    );
}
export default React.memo(CardWrap as FC<IProps>);
const RootView = styled(View)`
    &.CardWrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        .icon {
            width: 36px;
            height: 36px;
        }
    }
`;
